const { Router } = require('express');
const TodoController = require('../controllers/Todo');

const router = new Router();
const { listView, detailView } = new TodoController();

router.get('/', listView);
router.get('/detail/:id', detailView);

module.exports = router;
